//
//  BaseViewController.h
//  DianBa
//
//  Created by karl on 2018/8/20.
//  Copyright © 2018年 DianBa. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface BaseViewController : UIViewController

@property(strong,nonatomic)DBManagement *uiManagement;
@property(strong,nonatomic)NSString *stime;
@property(assign,nonatomic)BOOL isBackTitle;
@property (nonatomic, strong) WRCustomNavigationBar *customNavBar;

-(void)createRightWithTitle:(NSString*)title;
-(void)createRightWithImg:(NSString*)imgName;

-(void)rightAction:(UIButton*)sender;

//隐藏多余cell分割线
- (void) setExtraCellLineHidden:(UITableView *)tableView;
//计算文字高
- (CGSize) boundingRectWithSize:(CGSize)size withFont:(UIFont*)font text:(NSString*)text;

#pragma mark -
#pragma mark MBProgressHUD Methods
-(void) showProgressWithText : (NSString *) context;

-(void) showProgressWithText : (NSString *) context withDelayTime : (NSUInteger) sec;

-(void) closeProgress;

- (NSString *)getCurrentTimeStamp;


- (void)setupNavBar;

@end
